package _spring_test._tests;

import _spring_test.AAAClass;
import _spring_test.User;
import org.springframework.beans.factory.config.CustomEditorConfigurer;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.text.SimpleDateFormat;

/**
 * @Author: huangya
 * @Date: 2019/8/28
 * @Description:
 */
public class PropertyEditorTest {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("application-property-editor.xml");
        User user = (User) ac.getBean("user");
        System.out.println(user);
//        CustomEditorConfigurer customEditorConfigurer = (CustomEditorConfigurer) ac.getBean("customEditorConfigurer");
//        System.out.println(customEditorConfigurer);
//        AAAClass aaaClass = (AAAClass) ac.getBean("aaaClass");
//        System.out.println(aaaClass);
    }

}
